<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@include file="../includes/header.jsp"%>

<h2 class="title">Create a new user</h2>
<s:div cssClass="entry">
	<s:form action="addUserEnd">
		<s:actionerror />
		<s:actionmessage />
		<s:textfield name="u.lastname" label="Last name" required="true"
			maxlength="50" />
		<s:textfield name="u.firstname" label="First name" required="true"
			maxlength="50" />
		<s:textfield name="u.mail" label="Mail" required="true" maxlength="50" />
		<s:select name="code" label="Favorite currency" list="currencies"
			listKey="code" listValue="name" required="true" />
		<s:checkbox name="u.admin" label="Admin" />
		<s:submit value="Create the user" action="addUserEnd" align="center" />
	</s:form>
	<s:url action="users" var="users" includeParams="get" />
	<s:a href="%{users}">Back</s:a>
</s:div>

<%@include file="../includes/footer.jsp"%>
